<!doctype html><html lang=""><head><meta charset="utf-8"><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport"/><meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=EDGE"><link rel="icon" href="favicon.ico"><title>掌上信手书</title><script defer="defer" src="static/js/chunk-vendors.882dc6f03fc64d36.1745749936846.js"></script><script defer="defer" src="static/js/app.882dc6f03fc64d36.1745749936846.js"></script><link href="css/chunk-vendors.1745749936846.css" rel="stylesheet"><link href="css/app.1745749936846.css" rel="stylesheet"><script defer="defer" src="static/js/chunk-vendors.81076fa6a52ec272.1745749876819.js" nomodule></script><script defer="defer" src="static/js/app.81076fa6a52ec272.1745749876819.js" nomodule></script></head><body><div id="app"></div><script src="./vconsole.min.js"></script><script>function judgeHarmony() {
          console.log('index.html judgeHarmony --------');
          let u = navigator.userAgent || navigator.vendor || window.opera;
          console.log(u);
          console.log(u.includes('Harmony'));
          return u.includes('Harmony')
      }
      function releasedChannelInfo (info) {
          console.log('index.html 发布方式 --------');
          console.log(info);
          if (info.channel !== 'AppStore') {
              const vConsole = new VConsole();
              console.log('Hello world, cloud');
          }
      }

      if (judgeHarmony()) {
          console.log('index.html 在鸿蒙中啦 --------');
          if (window_ohos) {
              window_ohos['getReleasedChannelNativeToH5'] = info => {
                  releasedChannelInfo(info)
              }
              if (window_ohos.getReleasedChannel) window_ohos.getReleasedChannel()
          }
      } else {
          window['getReleasedChannelNativeToH5'] = info => {
              releasedChannelInfo(info)
          }
          if (window.getReleasedChannel) window.getReleasedChannel.postMessage('')
      }

      // window['getReleasedChannelNativeToH5'] = info => {
      //     console.log('index.html 发布方式 --------');
      //     console.log(info);
      //     console.log(info.channel);
      //     if (info.channel !== 'AppStore') {
      //       const vConsole = new VConsole();
      //         console.log('Hello world, local');
      //     }
      //   }
      //   if (window.getReleasedChannel) {
      //     window.getReleasedChannel.postMessage('')
      //   } else {
      //     // const vConsole = new VConsole();
      //     // console.log('Hello world');
      //   }

    if (judgeHarmony()) {
        console.log('index.html 在鸿蒙中啦 --------');
        if (window_ohos) {
            window_ohos['getServiceInfoNativeToH5'] = info => {
                console.log('在index.html中调用 getServiceInfoNativeToH5 -------');
                console.log(info);
                // window.baseURL = 'http://192.168.136.9:10201/coss';
                window.baseURL = info.baseUrl;
            }
            if (window_ohos.getServiceInfo) window_ohos.getServiceInfo()
        }
    } else {
        window['getServiceInfoNativeToH5'] = info => {
            console.log('在index.html中调用flutter获取到的serviceInfo -------');
            console.log(info);
            // window.baseURL = 'http://192.168.136.9:10201/coss';
            window.baseURL = info.baseUrl;
        }
        if (window.getServiceInfo) window.getServiceInfo.postMessage('');
    }</script></body></html>